<div id="main_content">

<ul class="tab-menu border bottom">
    <li id="tiny_show" class="tab-selected"><?=modul_anchor('modul/user', 'Пользователи');?></li>
    <li id="tiny_hide"><?=modul_anchor('modul/user/groups', 'Группы');?></li>
</ul>

<table class="table" cellspacing="0" cellpadding="4" border="0">
    <tr>
        <th><?=lang('user_id')?></th>
        <th><?=lang('user_login')?></th>
        <th><?=lang('user_mail')?></th>
        <th><?=lang('user_group')?></th>
        <th><?=lang('user_datereg')?></th>
        <th><?=lang('actions')?></th>
    <tr>
    <?php foreach($users as $row): ?>
    <tr>
        <td><?=$row['user_id'] ?></td>
        <td><?=$row['user_login'] ?></td>
        <td><?=$row['user_mail'] ?></td>
        <td><?=$groups[$row['user_group']] ?></td>
        <td><?=r_date($row['user_datereg']) ?></td>
        <td>
        <?=modalbox('modul/user/edit/'.$row['user_id'], image('images/icons/gear.png'), lang('edite_user').' - '.$row['user_login']);?>
        <?=modalboxquestion ('modul/user/delete/'.$row['user_id'], image('images/icons/cross.png'), lang('delete_user').' - '.$row['user_login'])?>
        </td>
    </tr>
    <?php endforeach; ?>
</table>
<?=$pagination->render()?> 
<?=modalbox('modul/user/add', lang('create_user'), lang('create_user'), array('class' => 'add'));?>
</div>